import request from '@/utils/request'

export function getInfos(query) {
  return request({
    url: '/graphql',
    method: 'get',
    data: {
      query
    }
  })
}

export function saveInfo(data) {
  return request({
    url: '/saveInfo',
    method: 'post',
    data
  })
}

export function updateInfo(data) {
  return request({
    url: '/updateInfo',
    method: 'post',
    data
  })
}

export function sendEmail(data) {
  return request({
    url: '/sendEmail',
    method: 'get',
    data
  })
}
